<?php
    include './base.php';
    $gender=$_GET["gender"];
    $sql="select * from yuangong where y_gender='$gender'";
    $res=mysql_query($sql);
    $arr=array();
    while($row=mysql_fetch_assoc($res)){
        array_push($arr,$row);
    }
    print_r(json_encode($arr));
?>